<?
require_once( 'functions.php');

	function GetUsers() {
		$connect = GetConnection();
		return $connect->query('SELECT * FROM 2012UG_Users');
	}
	
	function GetUser($id) {
		$connect = GetConnection();
		$results = $connect->query("SELECT * FROM 2012UG_Users WHERE id=$id");
		$row = $results->fetch_assoc();
		$connect->close();  // closing the connetion will help it to pass to the next function that has to use the funciton...  Always close $connect as soon as possible!		
		return $results;
	}
